package com.demo.guice;

import com.google.inject.Guice;
import com.google.inject.Injector;

/**
 * @author xuyouchang@supcon.com
 * @date 2020/6/9.
 */
public class DogTest {
    public static void main(String[] args) {
        Injector injector = Guice.createInjector(new DogModule());
        DogService dogService = injector.getInstance(DogService.class);
        dogService.bark();
    }
}
